<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>上传文件接收</title>
	</head>
	<body onload="SaveFileName();">
		<input type="hidden" id="pSpanFileNameId" name="pSpanFileNameId" value="${pSpanFileNameId}" />
		<input type="hidden" id="pFileNameId" name="pFileNameId" value="${pFileNameId}" />
		<input type="hidden" id="newFileName" name="newFileName" value="${newFileName}" />
		<input type="hidden" id="innerHtml" name="innerHtml" value="${innerHtml}" />
		文件名：${newFileName}
		<!-- input type="button" name="button1" value="确认" onclick="SaveFileName();" -->
	</body>
		<script language="javascript">
  var parent=null;
  parent=self.opener;
  function SaveFileName()
  {
  	var pFileNameId=null;
  	var pSpanFileNameId=null;
  	var newFileName=null;
  	var innerHtml=null;
 	pFileNameId=window.document.getElementById("pFileNameId").value;
  	pSpanFileNameId=document.getElementById("pSpanFileNameId").value;
  	newFileName=document.getElementById("newFileName").value;
  	innerHtml=document.getElementById("innerHtml").value;
	if(pFileNameId!=null)
	{
		parent.setFormIdValue(pFileNameId,newFileName);
	}
	if(pSpanFileNameId!=null&&innerHtml!=null){
//  	alert("pSpanFileNameId is not null pSpanFileNameId="+pSpanFileNameId);
		parent.setSpanIdInnerHtml(pSpanFileNameId,newFileName);
	}
  	window.close();
  }
  </script>
</html>
